package com.gzhryc.net_marketing.api.protocol.account;

import com.gzhryc.common.NumberTools;
import com.gzhryc.common.api.SecurityResponse;

import java.io.Serializable;

public class CloudPayAccountSearchOrderInfoResponse extends SecurityResponse<CloudPayAccountSearchOrderInfoResponse.Body> {

    private static final long serialVersionUID = 1L;

    public CloudPayAccountSearchOrderInfoResponse() {
        this.body = new Body();
    }

    public CloudPayAccountSearchOrderInfoResponse(Integer code) {
        super(code);
        this.body = new Body();
    }

    public CloudPayAccountSearchOrderInfoResponse(Integer code, String msg) {
        super(code,msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

        private static final long serialVersionUID = 1L;

        private String tradeNo;
        private String businessType;        //业务类型
        private String businessTradeNo;
        private Integer payResult;      //支付结果，200为成功，其它为失败
        private Integer money;
        private String accountId;          //收款商户
        private String payerId;           //支付者ID
        private String title;

        private String extContent;           //支付扩展内容

        public String getTradeNo() {
            return tradeNo;
        }

        public void setTradeNo(String tradeNo) {
            this.tradeNo = tradeNo;
        }

        public String getBusinessType() {
            return businessType;
        }

        public void setBusinessType(String businessType) {
            this.businessType = businessType;
        }

        public String getBusinessTradeNo() {
            return businessTradeNo;
        }

        public void setBusinessTradeNo(String businessTradeNo) {
            this.businessTradeNo = businessTradeNo;
        }

        public Integer getPayResult() {
            return payResult;
        }

        public void setPayResult(Integer payResult) {
            this.payResult = payResult;
        }

        public Integer getMoney() {
            return money;
        }

        public void setMoney(Integer money) {
            this.money = money;
        }

        public String getAccountId() {
            return accountId;
        }

        public void setAccountId(String accountId) {
            this.accountId = accountId;
        }

        public String getPayerId() {
            return payerId;
        }

        public void setPayerId(String payerId) {
            this.payerId = payerId;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getExtContent() {
            return extContent;
        }

        public void setExtContent(String extContent) {
            this.extContent = extContent;
        }

        public String getMoneyStr(){
            return NumberTools.getMoneyStr(this.money);
        }
    }
}
